<!DOCTYPE html>
<html>
<head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type" />
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1" />
<meta name="renderer" content="webkit" />
<title>{$seo.title}</title>
<meta name="keywords" content="{$seo.keywords}" />
<meta name="description" content="{$seo.description}"  />
<!--css-->
<link rel="stylesheet" type="text/css" href="{$Think.__STATIC__}/static/template/asset/css/bootstrap.css"/>
<link rel="stylesheet" type="text/css" href="{$Think.__STATIC__}/static/template/asset/css/base.css"/>
<link rel="stylesheet" type="text/css" href="{$Think.__STATIC__}/static/template/asset/css/thinkask.css"/>
{:load_static('font')}
{:load_static('layer_js','js')}
{:load_static_default('/public/static/template/asset/')}
</head>
<style type="text/css">
  .article-detail-content img{ max-width: 760px;}
</style>


<body class="thinkask">
  <header class="navbar navbar-inverse" role="navigation">
    <div class="container">
      <div class="navbar-header">
        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
          <span class="sr-only">Toggle navigation</span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand logo" href="#">
          <img src="/public/static/images/logo/thinkask_logo_black.png" height="30" />
        </a>
      </div>
      
      <div class="collapse navbar-collapse">
        
        <ul class="nav navbar-nav">
         
          {nav catid="1"}
          <li class="<?php if($module==$v['m']){ echo "active";} ?>"><a target="{$v.target}" href="{$v.url}"><i class="icon icon-index"></i> {$v.title}</a></li>
           {/nav}
          
        </ul>
       
        {if condition="$userinfo['uid']>0"}
        <ul class="nav navbar-nav navbar-right">
           <li class="dropdown user">
              <a href="" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false" data-hover="dropdown"> <img alt="{$userinfo.user_name}" src="{:get_file_path($userinfo['avatar_file'])}" /> <span class="caret"></span></a>
              <ul class="dropdown-menu" role="menu">
                   
                   <li class="hidden-xs"><a href="{:url('people/people/index')}"><i class="icon icon-job"></i> 个人中心</a></li>
                   <li class="hidden-xs logout tLoginOut"><a href="javascript:;"><i class="icon icon-job"></i> 退出</a></li>
              </ul>
            </li>
        </ul>
        {else /}
        <div class="collapse navbar-collapse navbar-right">
          <!-- <a class="btn btn-primary navbar-btn" href="{:url('ucenter/user/login')}">登录</a> -->
            <div class="btn-group">
            <button data-toggle="dropdown" class="btn btn-primary navbar-btn dropdown-toggle">登陆 <span class="caret"></span></button>
            <ul class="dropdown-menu">
                <li><a href="{:url('ucenter/user/login')}">登陆</a>
                </li>
                <li class="divider"></li>
                <?php if(getset('qq_login_enabled')=="Y"){ ?>
                <li><a href="{:url('ucenter/oauth/login',['type'=>'qq'])}" class="font-bold"><i class="fa fa-qq" style="padding-right:10px;"></i>登陆</a></li>
                <?php } ?>
                <?php if(getset('sina_weibo_enabled')=="Y"){ ?>
                <li><a href="{:url('ucenter/oauth/login',['type'=>'sina'])}" class="font-bold"><i class="fa fa-weibo" style="padding-right:10px;"></i>登陆</a></li>
                <?php } ?>
                <!-- <li><a href="buttons.html#">新浪登陆</a></li> -->
                

            </ul>
        </div>
          <a class="btn btn-success navbar-btn" href="{:url('ucenter/user/reg')}">注册</a>
        </div>
        {/if}
        {if condition="$userinfo['uid']>0"}
        <ul class="nav navbar-nav navbar-right">
          <li>
            <button class="dropdown-toggle btn btn-primary navbar-btn" data-toggle="dropdown" data-hover="dropdown">发布 <span class="caret"></span></button>
            <ul class="dropdown-menu" role="menu">
              <li><a href="{:url('question/post/edit')}">问题</a></li>
              <!-- <li><a href="{:url('article/post/edit')}">文章</a></li> -->
            </ul>
          </li>
        </ul>
        {/if}
        <form action="{:url('/search/index')}" id="global_search_form" class="navbar-form navbar-right" role="search" method="GET">
          <div class="input-group">
              <input type="text" class="form-control" placeholder="搜索 文章/问答" name="keyword">
              <input type="hidden" name="type" value="all">
              <input type="hidden" name="page" value="1">
              <span class="input-group-btn">
                 <button class="btn btn-default" type="button" onClick="$('#global_search_form').submit();">搜索</button>
              </span>
          </div>
        </form>
      </div>
    </div>
  </header>

 
  {if condition="getset('site_announce')"}
    <div class="container">
      <div class="note note-danger">
      {:getset('site_announce')}
      </div>
    </div>
  {/if}
   